import {Component} from "react";

class WsInfo extends Component{

    render() {
        // console.log(this.props, 'props信息')
        let {attr} = this.props
        return(
            <div>
                <h1>内容</h1>
                <p>可变参数：{attr?.num}</p>
                <p>接收到的参数：{attr?.obj?.text}</p>
            </div>
        )
    }
}

export default WsInfo;